package marina;

public class J09Account {
	public static void main(String[] args) {
		//call by reference방식
		//=> 내가 짠 거... ㄱ ㅠ
		String aid = "";
		int balance[] = new int[2];
		double interestRate[] = new double[2];
		String dateCreated = "";
		int draw[] = new int[2];
		int add[] = new int[2];
		double gmir = 0;
		int wDraw = 0;
		int depo = 0;
	
		aid= "1122";
		balance[1] = 20000;
		interestRate[1] = 4.5;
		dateCreated = "/";
		draw[1] = 2500;
		add[1] = 3000;

		getMonthlyInterestRate(gmir, interestRate);
		withDraw(wDraw, balance, draw);
		deposit(depo, balance, add);
		
		System.out.println("시험값");
		System.out.println("계좌번호 : " + aid);
		System.out.println("통장잔액 : " + balance[1]);
		System.out.println("월간 이자율 : " + gmir);
		System.out.println("통장 개설 날짜 : " + dateCreated);
		System.out.println("인출 결과 : " + wDraw);
		System.out.println("예금 결과 : " + depo);
	}
	public static void getMonthlyInterestRate(double gmir,double interestRate[]) {
		gmir = interestRate[1] / 12;
	}
	public static void withDraw(int wDraw,int balance[], int draw[]) {
		wDraw = balance[1] - draw[1];
	}
	public static void deposit(int depo,int balance[], int add[]) {
		depo = balance[1] + add[1];
	}
}
